package cn.stalk.wf.rest;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.stalk.wf.common.Response;
import cn.stalk.wf.service.AccessService;

@RestController
@RequestMapping("access")
public class AccessController {

    @Autowired
    private AccessService accessService;

    @PostMapping(value = "list")
    public Response list() {
        List<String> list = accessService.selectAllUser();
        return Response.successData(list);
    }

}
